package com.zhangdy.agent.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangdy
 * @since 2022-01-06
 */

public class MethodPointRule implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long remoteServerId;

    /**
     * 0-before 1-insert 2-replace 4-after
     */
    private Integer rule;

    private String ruleName;

    private Integer ruleLocation;

    /**
     * 0-java class 1-java code block
     */
    private Integer ruleType;

    private String description;

    private String sourceCode;
    private String classReference;

    private Boolean enabled;

    private Boolean syncEnabled;

    private Date createdOn;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRemoteServerId() {
        return remoteServerId;
    }

    public void setRemoteServerId(Long remoteServerId) {
        this.remoteServerId = remoteServerId;
    }

    public Integer getRule() {
        return rule;
    }

    public void setRule(Integer rule) {
        this.rule = rule;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public Integer getRuleLocation() {
        return ruleLocation;
    }

    public void setRuleLocation(Integer ruleLocation) {
        this.ruleLocation = ruleLocation;
    }

    public Integer getRuleType() {
        return ruleType;
    }

    public void setRuleType(Integer ruleType) {
        this.ruleType = ruleType;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getSourceCode() {
        return sourceCode;
    }

    public void setSourceCode(String sourceCode) {
        this.sourceCode = sourceCode;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public Boolean getSyncEnabled() {
        return syncEnabled;
    }

    public void setSyncEnabled(Boolean syncEnabled) {
        this.syncEnabled = syncEnabled;
    }

    public Date getCreatedOn() {
        return createdOn;
    }

    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }

    public String getClassReference() {
        return classReference;
    }

    public void setClassReference(String classReference) {
        this.classReference = classReference;
    }
}
